#ifndef PARTICLE_H
#define PARTICLE_H

#include "physics.h"

class Player;

/** Mass particles from planets */
class Particle {
	// Return for tracebackCollision
	struct traceback {
		int newx,newy;
	};
	traceback tracebackCollision(Background *back, double compression);
	
	static int colLost;
	static int colCount;
    public:
    double activateDelay;	// There is a short delay before the particle is actiavted
    int color;			// This is to prevent weird explosion artifacts (what I like to call the Eiffel Tower effect)
    Gravitated *g;
    bool killMe;
    Particle(class PhysicsModule *phys, int c, double* pos, double* vel);
    
    void collideBackground(Background *back, double compression);
    void collidePlayer(Player *pl);
}; 

#endif

